package cn.isjinhao.crws.sql.grammar.retrieve.represention.column;

import cn.isjinhao.crws.sql.grammar.CurdStatement;
import cn.isjinhao.crws.sql.grammar.Unary;
import cn.isjinhao.crws.sql.grammar.CurdStatementVisitor;
import cn.isjinhao.crws.sql.lexical.token.Token;

/**
 * @author 01395265
 * @date 2021/3/3
 */
public class ColumnRep extends Unary {

    /**
     * @param curdStatement 真实的表
     * @param operator  别名
     */
    public ColumnRep(CurdStatement curdStatement, Token operator) {
        super(operator, curdStatement);
    }

    public ColumnRep(CurdStatement curdStatement) {
        super(null, curdStatement);
    }

    @Override
    public <R> R accept(CurdStatementVisitor<R> curdStatementVisitor) {
        return curdStatementVisitor.visitColumnRep(this);
    }

}
